package java101;

import java.util.Scanner;

import javax.swing.JOptionPane;

public class Testing {

	static Scanner sc = new Scanner(System.in);	

	public static void main(String[] args) {


		String inputNumber = JOptionPane.showInputDialog
		("Enter a number between 0 and 10,000: ");
		int input = Integer.parseInt(inputNumber);
		do {			
		System.out.println("You didn't input a number between 0 and 10,000!");
		System.exit(0);
		} while (input < 0 || input > 10000);

		
		// TODO Auto-generated method stub
		
	}
	
}
